package decorate.service.impl;

import decorate.service.Shape;
//shape接口的抽象装饰
public abstract class ShapeDecorate implements Shape {
    public Shape shape;
    public ShapeDecorate(Shape decorate){
        this.shape  = decorate;
    }
    @Override
    public void draw() {
        shape.draw();
    }

    private void serRed(ShapeDecorate shapeDecorate){
        System.out.println("执行red方法");
    }
}
